<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreateAppStandardTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('app_standard', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('channel')->default(0)->comment('渠道号');
            $table->tinyInteger('type')->default(0)->comment('0:用户协议,1隐私政策');
            $table->string('link_url')->default('')->comment('链接地址');
            $table->tinyInteger('flag')->default(1)->comment('状态：1生效，0生效');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('app_standard');
    }
}
